package com.domain;

import com.enums.Alignment;
import com.enums.DataTypeEnum;
import com.enums.LineEnum;
import com.enums.TextLevEnum;
import com.fonts.Font;
import com.itextpdf.text.pdf.PdfPTable;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@Data
@NoArgsConstructor
public class WriteData {

    private String key;
    private String group;
    private String row;
    private String[] head;
    private float[] cellSizeArray;
    private Boolean changeCellSizeBoolean = false;
    private LineEnum lineEnum;
    private Font font;
    private PdfPTable pdfPTable;
    private DataTypeEnum dataType;
    private String writeHandleClassName;
    private Alignment alignment;
    private TextLevEnum textLevEnum;
    private String stringValue;
    private List<List<WriteData>> listValue;
    private Object value;

    public WriteData(String stringValue) {
        this.value = stringValue;
        this.dataType = DataTypeEnum.STRING;
        this.stringValue = stringValue;
    }

    public WriteData(String key, String stringValue) {
        this.key = key;
        this.value = stringValue;
        this.dataType = DataTypeEnum.STRING;
        this.stringValue = stringValue;
        this.alignment = Alignment.CENTER;
        this.textLevEnum = TextLevEnum.THREE_LEV;
    }

    public WriteData(String key, String stringValue, Alignment alignment, TextLevEnum textLevEnum) {
        this.key = key;
        this.value = stringValue;
        this.dataType = DataTypeEnum.STRING;
        this.stringValue = stringValue;
        this.alignment = alignment;
        this.textLevEnum = textLevEnum;
    }



}
